clearing id positions hash, fixes #988