Fixed Inputmanager and Gun's bug