Fix shared state