Not passing correct parameter into method.