fix selecting previous model