i think i solved the disappearing material bug