Fixes length validator returning a wrong error message
Fixes Can't use method return value in write context