Fix old permission bug