Fixed heap and asserts in release