fixed multiple file bug