fix char* > int conversion