fix errors on freeswitch state