fix check for for positive number instead of !=