fixed the bug in the single calendar item case