Lots of bugs relating to duplicate object creation