Fix permission not seted problem.