Correction of the exit function