Fix a bug of calculation of r.a. and declination

A bug in the calculation of right ascension and declination is fixed.