Fix Dict v0.4 deprecation warning