fixed bugs related to markup feature