Fixed issue with unneeded error messages