Fixed issue caused by resize() being called without parameters.