Fix too many render cycles