Fixed Gun.upgrade bug