Correcting off-by-one error in align to ground/right wall functions.