fixed wrong factory declaration method
Merge pull request #225 from netiul/fix/form-element-factories

Fixes wrong factory declaration methods