Fixed risk/base.py