startYear/endYear bug fixed

set input year value when this is previos or later than startYear or endYear.