Fixed #1090.