fix a bug for master, slave recipes