Fix variable names causing command permissions to fail