some nil-checking in link_to_resume
add some nil-checking