fix bug with [[filename]]