fix loading the shared states