Debugging change for change_sel

Reverse this change once the function works