fix long value for compare