fix validation error