Fixed the resize trigger