change the course admin manage function because some invalid course is missed