getCookie callback not work