fix undefined links