type bug fixed