Fix broken return statment in backend