fix to conditional asserts