fix @var_collection is nil bug