Fixed a small bug in EMIT()