Fix utility function.