fixed a bug resulting from superfluous nested forms