Fixed some mouse interaction bugs