Fixed bug when binding to objects in the resource section