We suggest a novel method for significant improvement of fiber Bragg grating (FBG) spectral characteristics based on compensation of repeatable errors during the grating writing process. The method is based on an open loop scheme in which a test grating is written first and then a corrected design is obtained and implemented by writing another (compensated) grating. The results are presented for a FBG dispersion compensator.