Fixed error rendering