Fixed method call bug