Fix ClassCastException when attempting to load deities