Fixed numeric comparison error - was comparing strings lexically