fixed bug and made ASSERT invisible to release