Fixed potential crash in fd_dump function.