bug fixes to LPF