fix the ending for markup