fixed the bug where no appointments show at startup