fix creation of range selection div