fixed rendering problem