fixed error caused by used with ExtJS