It ends by innervating the adductor pollicis and the deep ( medial ) head of the flexor pollicis brevis . It ends by innervating the adductor pollicis and the medial ( deep ) head of the flexor pollicis brevis .