fix compilation on 1.6
relates to #5410