Fix build args

build() was called with dom, but inside the function dom was taken from global.