Fixed a Bug finding an Assertion Error