Fixed assertion based on 6b3bcbc changes.

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