validate file bug fixed