Resurce elements empty attr fix