fix recording data

#553