Correct invalid mainlim when zero storage size for server mode operations