fix errors rendering