Fix vertical collision bug