Fixed rust api changes