fix selecting multiple variables