Fix Permission manager
Release semaphore
Remove unneccessary Semaphore
Merge pull request #1863 from erwinwinder/master

Fix Permission manager