Fixed crash related to recipe sorting