Fixed concurency issue with accepting and finishing orders