fix serious bug that take angle index as frame number