BUG: fix a %d problem