BUG: fix loading all variable data during slicing