fixing null-pointer in file-wrapping