fixed an issue with the virtual input on screen change