fixed bug in UseCommand