Fixed #397.