Fixed id problem; separate instances each have unique state