Correct bugs when rendering code snippets and uploading media.