Fixed bug in showing the wrong button in item details