Fix partials in production mode

I dont have time to fix the tests also, but this fixes the problem.