fix issue in result flow