fix rust mode