fix a bug when on the browser that does not support function.prototype.bind