correcting variable name bug which prevented containers being cleaned up