trying to fix bug in link rendering