Fixes beginrequest event