fix bug for 1011