fix get slope error when there is no xystage avaliable