Wrong variable passed through emit.