Fix comparison

the old code did a string comparison with == which is obviously wrong.