Fixing an issue with the resize code.