fix a resize bug that caused maintitle to shrink