fix model validation in inline editing