fixed wrong styles when the table switchs geometry types CDB-1389