Fix compile method for partials