James Franklin confident of avoiding defeat