small fix to assert