fixed a very stealthy bug in recipe class