fixed uncorrect getMonth() usage.