double call
small fix
removed debuglog print_r not that great