bugfix concerning polygon center calculation