fixing invalid vals