Bug fix in markdown loader