fixed error with new rust and core