fixed type error in source_files