fixed some minor markup bugs [#494]