Fixing code so uploaded slides work