Hi Dominik,
First make sure you're not going the wrong way (I say this from experience). If the fretted 12th fret note is flatter than the open string, you'll want to make the string shorter, so move the saddle closer to the nut. However, make sure the pitch changes in the anticipated direction...