Fixed an issue with button reacting to mouse clicked incorrectly