fix problem with permissions