fix bug on first launch