Fixing bug: not closing <a> tag. Thanks to @svandenhoek for reporting this bug.