can't remember what i changed. pretty sure it was the check for ref_count