Fix bug with check state in form builder.