fixed fs reference bug