reproduce github issue 162: ClassCastException on startup