Fix renderer initialization