fix compilation error
fix resize