Fix ClassCastException while rendering a moon buggy.