Engine: added a sanity check.