(Hopefully) fixed bug with sound handler and resource loading