fixing minor bug in portlets