Fix minor bug in dumimg.