Fly in the ointment

Generated image of a fly in some ointment
A fly in the ointment is a small problem that spoils something that is otherwise good. It describes a situation where one annoying detail ruins an otherwise positive plan or experience.

This idiom is based on the idea of a fly falling into a jar of ointment or cream. Even though the ointment is useful, the fly contaminates it and makes the whole thing unpleasant.

The cake for the party looked perfect, but the misspelled name on top was a real fly in the ointment.