fix bugs

missing $ in i