fix for adding cookies