Fixed #3096.