fix for emulator