Corrected typo emit_y = emit_x