fixed bug in get_handler_obj