Fix assertion failed