Fixed issue with raising errors.