Corrected number of appointments reference in get appointments method