Prevent a possible stack overflow