fix erorr from old lib (haneke)