Fix quality bugs.