Fix bug in icm