fix range contents set method