Fix adding classes, partial fix for 1 element-only ranges
'' is not a number value
Fix setting initial value