Collinear holographic storage system is one of the advantages of the promising candidate as its unique system design. The wavelength margin is a very important characteristic which can make a laser diode to be used possible as a light source in a holographic storage system, because of the bit-error-rate (BER) of a reconstructed page data pattern will be so high that we cannot decode it correctively, even though the wavelength drift of the diode was small enough. To solve the problem, we studied a method of decreasing BER by adjusting the focal length of the lens to compensate the wavelength drift in the collinear holographic storage system. Once we changed the focal length of the lens, the angles can also be changed to satisfy the Bragg condition. So we find that decreasing the focal length of the lenses can compensate the wavelength drift up effectively and vice versa.