I'm getting Only numeric values are accepted error