Remove useless things
Fix bug about resize