fixed dump func

fixed dump function