Fixed Firefox bug

Make an impact button did not work due to js bug