add a security to prevent malformed calendar default view option