Fixing update and permissions