fixed calendar null string bug