removed bug in loading the resource drawer