fixed bug for results