Fixes readonly validator issue