Fixed problem with expanding links on click