fixing error check when no inquiry class was present