fixes for Permissions