fixed the incorrect form rendering issue, closes #213