Fixed shared state between instances

`state` was part of the prototype and thus was shared between instances.