fixes overwriting of call

the argument $method is overwritten but still used in an if statement...