fix method to mark orders as completed