fixed "unable to draw" error on construction