Fixed #576.