fixed broken parts of rendering