fixing permisions