solve console-inner resize bug