There should be a space before the dash but not after. As for why it's crashing, if it wasn't crashing before, work backwards through your changes till you find the one that broke it. It could be something simple like changing the core type that did it.