fixed error when not needing to update