fix bug with properties existing after document delete in RemoteDoc