[#1666] fixed regression for 1.2.x version