fixed a bug in MarkdownActivity