Fixed #1297.