fix issue on permissions