better fix for LCP[0]=0