Fixed a bug with the resize option