still a bug with the clearCMD

something todo with the counting of the ‘bubbles’ after changing the
variable value in the function