Range 0 error fix