fix logic for assets precompiling