fixed the constant identifer bug correctly