Leave application fix