fix asserts