Fixes for IRAF plugin in reference viewer