Error message after successfully booking appointment

When someone books an appointment, a confirmation pop up shows up, immediately followed by an error message stating "We are sorry, but this time slot is no more available. It seems that it has been just booked. Please refresh the page and try another time slot." This happens at any slot you select, and it actually does log the original appointment, but confuses users that they haven't successfully booked the appointment.