fixed error caused by used with ExtJS

Not enough, but I need to avoid error.