Fixed bugs in iraf calls