Fixed assertion based on 83bff8f commit

Signed-off-by: crynobone <crynobone@gmail.com>