fix type bug