Fixed calendar toggle issue