Fixed receiving empty messages bug.