Fix wrong mouse cursor override after settings dialog closed