update logic error