Fixed the omission that cause break resize.