fix resize demo