fix two incorrect parameter assertions