fix inconsistent uses of 'this' vs 'sim' in constructor