Fixed #2636.