Fixed #3097.