Fix problem while converting years