fixing id error