Fixes an issue with mouse input