fixes issues with center calc