Fixes photon redirect exception