fixed bug for ==