Fix utility function

It now works