fixed duplication of appointments in calendar