Bug fixes in recipe generation