Fix utility function

It now works
That's why phantom is dying... thanks it would have taken me a while to figure that out.