Fix crash on firing when compiled to jar