Remove deprecated api call

Close #35