fixing bug in partials