Fixed the issue of wrongly handling function.prototype.apply