Revert "fixed error on accept handler"

This reverts commit 1ff2d598dff223a14195f62cbe05991df3b9e175.