Fixed #3159.