work out resize issue

Signed-off-by: Andrey Rybalchenko <rybal@microsoft.com>