fix bug at starting