fixes bug in bind method with JsArray