Change appendItem.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Fixed code style.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>