fixed issue with select_level[n] not working on the right level