fixed mistake with instantiation in reading the fits files