Fix variable name and permissions save status