Fixed use of equals (closes #2109)
Merge pull request #2111 from WouterJ/patch-3

Fixed use of equals (closes #2109)