A proof of the comparison theorem for spectral sequences