fixing no error messages bug