fix exception in custCtrl