Clear persistent data after item assigned. Fix some material selection screen functionality.