Fixed Minor error case flaw