fixed bug: expires was not set.