fixed one liner data race in compat