make the resize works again