Error in selected date resource for customized calendar