Fix bug and add asset precompile