crash fixes for mame (nw)