Fix #176
Fix for JuliaLang/julia#8501