Fix permissions with search