Fixed improper use of the bind function.