* removed resources
* fixed empty element bug