Fix recursive warning bug