Fix for resource regitering with attributes