Fix relative path bug in link
Fix compile bug -- save blocks in 'VARIABLES'