Fixed severe bug with multiple handlers.