fix filestates