Fixes issues with generics on the write permission validator