Fix synchronous implementation.