Fix #5324
Merge pull request #5325 from JuliaLang/sjk/n5324

Fix #5324