Fixed bug that caused missing errors.