fixed bug with scope in #move_to_child_with_index