Fix portlet creation