solve filename problem