fixing id problem