Mouse state fix