lp: fix problems