Fixed function.
Using the right comparation fn.