Fix bug while cookie was empty