1.8.7 and doc code fix

The documentation doesn't match the code, so i've just changed the variable name to work correctly.