Workaround GCode failing with 500 error with some issues