fix fixperms function
update