Fix list undefined bug