fix: make sure we only get results from last sequence when using a
composite key.