Fixed error with emulation prevention