Fixed assertion bug.