fix bug for leon