Fixed crash after remove a courses