Fix error on value comparison