Fixed #1494.