fix setResizable become true