Fixed bug that caused wrong Details/Hide link to appear