fixed non-preserved permissions issue