Whoops, passing the wrong parameter from the call in resize()