Fixed broken ensure variable