Changed ASSERT with GC_ASSERT, minor modification