Simplify the XRect indicator code
Fix XGroup object position issues when creating the XGroup object by
pasting or opening a file. Debug stuffs are also kept.