Fix for not found in sequence exception.