Fixed bug where multiple generator calls would return the same record