fixed some portfolio resizing bugs