fix minor rendering bugs