fix ff bug in elevation profile