Fix store path and permission.