portfolio generator bugfix