[Bug 2686] LocalSize()/GlobalSize() return wrong size!