Bug fixed for XObject.