Fixed profile permission redirect loop