fixed invalid mime type missing "application/" prefix for all open document types in the next 4 lines, too