fix using cookie key.