Fixed assertion due to implementation change

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