Fixed comparisons bug