Fixed compilation error with nightly rustc