Fix plotting problems.