fixes variable name bug in SR checking