Fix runtime error in Duckmatic