fix for reading RAW files