Fixes a bug with frontend emulator.