Add adapt_to_marking, and it works now