Fix record function <- a very silly mistake I made

OMG ALL MY FAULT.