Fixed ui bug when moving window to another screen.
Fixed headless mode crash when trying to add rendersystem listener.