fixed bug where the med detail page showed wrong medicine data