fix permisions in code example