Remove Unused line
fix crash, check first if the var is in variable_shape