Fix lat shape problems.