Fixed problem with recording