Fix vertical collision check