fix validation err