Fixes a bug with profile grants removal