Bug in refresh of shared state when device is rotated