fixed type change bug