resolve the issue for assign and available leaves.