Critical fix: check orders bug