fixed how circuit extent is calculated