Solved a bug when changing the startangle