fix gallery mkd