Fixed protocol bugs.