id bug fixing