Update dynamic-system-hard.lua to implement the failure fix