fix circuit crash