fixing bug for withdesign