Fixed #2664.