Fixed bug for case no-data.