fix red file error