Add permissions
Fix NPE when clicking outside inventory
Fix a ConcurrentModificationException