fixed resize check for this