Fix assets build  script and rebuild