fix open appointment bug
fix open appointment bug
more fixing of open appointments