Fixed attach_subs check