Fixed small bug in AssignedMedicamentFactory