Fix leave application example