fix old astropy stuff