fixed bad warning exception