fix template in markup bug