Fix error when admin awards badges