fixed a bug with horizontal heights not saved