Fixed bug causing failure if lpc is cleared and there are no lpc