Fix deprecated function bind