fixed bugs during recreation of program from json
[Issue4]the appended li element are not styled