You used the wrong symbol on the repeat command. Use ">" not ")". Also, you can use the NEW command in direct mode to reset the code.