fix bug for sumatra