clearing id positions hash, fixes #988
Merge pull request #993 from qreal/#988

clearing id positions hash, fixes #988