fixed API shift;closes#1302