Fix a bug by removing mercury and best_in_place