Table and SQLContainer problem

I have a problem with Vaadin Table and SQLContainer. I create a table that uses SQLContainer. If I remove an item, that exists in the database, I can’t add a new item anymore. If i do, I just get an Internal error message. The error trace is following:

SEVERE: Terminal error:
java.lang.ArrayIndexOutOfBoundsException: 4
        at com.vaadin.ui.Table.paintContent(Table.java:2496)
        at com.vaadin.ui.AbstractComponent.paint(AbstractComponent.java:755)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.writeUidlResponce(AbstractCommunicationManager.java:954)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.paintAfterVariableChanges(AbstractCommunicationManager.java:841)
        at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:767)
        at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
        at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
	

An example code of this error is below (the method is in the class extending VerticalLayout):


private void test() {
	//Creates the SQLContainer     
	connectionPool = new J2EEConnectionPool("java:comp/env/VaadinTest");
	TableQuery query = new TableQuery("Users", connectionPool, new MSSQLGenerator());
	query.setVersionColumn("Id");
	SQLContainer container = null;
	try {
		container = new SQLContainer(query);
	} catch (SQLException ex) {
		System.out.println("Problem: " + ex.toString());
	}

	// Creates the table
	Table table = new Table("Users table", container);
	table.setImmediate(true);
	this.addComponent(table);

	// Removes an item
	table.removeItem(container.firstItemId());

	// Add a new item
	Object itemId = table.addItem();
	Item item = table.getItem(itemId);
	item.getItemProperty("Name").setValue("Matti");

	// Crash...
}

In my database I have a Users-table that has 5 rows. Each row has Id- and Name-columns. This example uses TableQuery, but I have same problem with FreeFormQuery.

If I change table to select, code works just like it should. Have I missed something or is there an error in Table?