fixed issues in gendreau