Fix #335.