fixed resize error