fixed the memory issue with bicfinder