fixed bug in global dimension calculation