Fix bug with plotting scatter plots from FITS files