fix year detection