Fix bug for no opportunities