-fix compile issue due to api change