fix bug in p7-bse where K was not cleared between runs