I figured out was it happening. I submitted a bug in : https://bitbucket.org/catherinedevlin/cmd2/issues?status=new&status=open
plus a patch that fixes the bug. If someone has the same issue you can use the patch if the maintainer does not update the code.