fix error

two commit fix error sometime draw button on center and crash when joystick listener is null