fix ResourceBuilder