Fix year.to_i problem.