Fixed rendering bug