fix issues with recording