fixed ordering bug of value lookup in stores