fix ajax and expiry periods