Fixed loading of older state files