Fixed a bug when no sound exists and game breaks