Wrong call to function