Fixed the hit detection for button