Fixed wrong compairison in pmap.