Fix for undefine when pressing inside button 

Same change as LostAtNight