improved ChatBox range set validation