fix table, rename element to resource
fix