Where not null instead of next

just a minor change that was bugging me :)