fix to assert