Fixed small problem with DBG output to a file