Fixes bug causing a fatal error related to rendering links.