Fix type error in slide, change var name in code