Add setting for build
Fix bag realted with id