Fix bug in copyright year logic