Adapt and fix attribute table for new vector api
Remove debug variable