Fixed minor setType issue