bug fixed in cookie