[Reviewed by: Andy] Fix regression in resize introduced by AIO node development

Already reviewed by Andy, this fix reinstates some code that was accidentally dropped during the AIO node development.