fix to cookie bug including port