resolve the assign leave issue.