fixed npe in designer