fixing a crashing bug in making recipes