fix Weird Rendering Bug