fixed rendering of debug texts and terrains