Fix helper function.