fixed a minor crash in the prescription module.