Fix https://github.com/daid/Cura/issues/496