Clean and fix padding errors.