ajax file bug fix