fixing wrong bind call