Fixed issue where the csvfile was grabbing the wrong raw file