fix crashes and sound