fix wrong rendering