fixed UnsupportedOperationException when adding form