Merge pull request #779 from Nekotekina/master

SC_FUNC fix