Fix save of selection