fixed an IE bug with tools.trace method