Fixed a problem with a terminated listitem