Fixed error in samrt ip