Found logic error in new render code