Fix source setData usage with Document