fixed selfcookie bug