getCenter conditional statement bug fixed.