fixes compile issue in buylpi,

note: buylpi has not been tested in ages...