Fixed a bug when sliding out of a button press.