Fix method call issue in header partial