[south-rosemary] Corrected some code which results in previousItem.left being undefined