fixed lp bug