Fixed #2742.