weird bug in reading files...