engine-tag: rename var and add sanity check