fixing warning cookies bar