Correct the script to be more dynamic when current month change.