fix backend flavor detection