Fixed wrong file read and units