fixed the :type input issue