fix small bug in printflags