fix bug with multiple handler attaching