Fixed some warnings printed when sfx are disabled.