fix message dependencies