Fixing rendering bug if context missing