Fixed pocket bugs.