Fix condition in async listener.