fixed #3151