Fixed render loop