fixed bug closing portfolio contents