fixed bug

resize bugs