fixing lecture bug