Fixes #2905 Fixed dist setting