bug fixed when removing portfolio