Fix checking for invalid fields on get