fix usage of load_snapshot