Fix compatibility error