You can't unassign as the screenshot you have posted shows being currently being unassigned. If you select assign licenses what happens? Can you post a screenshot of that please.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.