Fix list append formatting