Slight mistake with error catching order.