fixed not recognizing Emit