fixed an error in ERE