Fixes bundle permission bug