constant file bug fix