fix config and cookie