fixed bug in "new" command