fix: using passed dets handle instead of old hardcoded one