fixed some errors, hook should return only the first element of the eventCallbackMap entry