Fix assertion
Merge pull request #969 from Ichimonji10/bugfix

Fix assertion