fixes bug in portfolio selector