little fix which caused screen flickering in emulator