fixed error if you fire without moving the mouse