Fix manifest permission bug