fixed handling item updates when using a global secondary index