Bug-fixes after refactoring.
Use base form element object if there is no specific class.