Correct compare double