fixed some errores, long-> hex