Fixed recording bug