fix bug where object not being passed to partial