Fix code error in debug assertion (#21)

Thanks @profanum429 :D