fix bug for empty answer