modal fix and assets precompile fix