Correction of positioning bug in vertical mode