Fix materials classification form population

Unfortunately coercing the real ids to ints doesn't seem to work.