Fix recorder created code