fixed event-listner-bug in permissions