another minor bug found and fixed in cmdpu.c