fix before casting form buttons
Merge pull request #3 from redatest/before_casting_form

fix before casting form buttons