try to fix duplicate ID exception
add cookie