Fixed elemend width validation and value size check.