Fixed pre_gen_entity behavior.

The `handle_event` function was called `handle_info` and missing a parameter.