Fix afterPhantomRequest

Fixes the afterPhantomRequest to use the updated parameters being sent into it.