fix buyYear bug