Eliminate redundant code for mainsize display for handling mainsize 0 in server mode.