fixed API shift;closes#1302
Merge pull request #1321 from affektive/1302

fixed API shift;closes#1302