fixed error of undefined bind