resize issue workaround