fixed connection handler hook bug