fixed some bugs for inclined moving