remove revert buffer in update course. sometimes no buffer is open