Fix ASSERT condition