fix button collision detection