KAZOO-2474: Fix function clause error