Fix some probles with the path of cookies