Set type bug solved