fix file rights for stage