Bug fix: NaNs generated because of byte to float conversion