Fixed bug in algorithm

Checks new added allergies on previously selected meds.