BUg: fixed a bug in recip.py