Exit procedure fixed.