fix bugs add resize options.