EM: fix center recalculation bug