Fixed the encoder and resizer events.