fixed a bug with error-catching in GFS