fixed recent breaking change in rust