fixing puppet detection issue