Fixing emit error