Fixed initial color issue with cookies