Remove redundant variable 'ret' in forms.
Fix inspection problems.