fixed issue with cookies