Fixing respCode check