bugfix in astropy.wcs call