Fixed #2916.