fix gallery md error