fixes permissions issue from proxy