Quick correction of the exit function