fixed bug of shooting while moving