fixed small bug in concast
fixed concast bug