Fix a problem in molecule finder that prevent working for frames > 1