Fixed #2577.