Fixing bug when large angle