fix not able to add weekly and monthly tasks