Fixed invalid parse error and changed Repeat syntax